# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

a = Analysis(
    ['fluent_ui.py'],
    pathex=[],
    binaries=[],
    datas=[('config.json', '.'), ('robot_images/*', 'robot_images')],
    hiddenimports=[
        'PyQt5.sip',
        'PyQt5.QtCore',
        'PyQt5.QtGui', 
        'PyQt5.QtWidgets',
        'PyQt5.QtMultimedia',
        'qfluentwidgets',
        'qfluentwidgets.components',
        'qfluentwidgets.components.widgets',
        'qfluentwidgets.common',
        'numpy',
        'numpy.core._methods',
        'numpy.lib.format',
        'requests',
        'serial',
        'pyaudio',
        'matplotlib',
        'matplotlib.backends.backend_qt5agg',
        'websocket',
        'websocket.WebSocketApp',
        # 添加项目模块
        'main_controller',
        'system_state',
        'motion_generator',
        'robot_comm',
        'config_manager',
        'data_control',
        'timeline_editor',
        'music',
        'xfyun_speech',
        'exception_handler',
        'ch',
        'X1_http'
    ],
    hookspath=[],
    hooksconfig={},
    runtime_hooks=[],
    excludes=[],
    win_no_prefer_redirects=False,
    win_private_assemblies=False,
    cipher=block_cipher,
    noarchive=False,
)

pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(
    pyz,
    a.scripts,
    a.binaries,
    a.zipfiles,
    a.datas,
    [],
    name='robot_dance_controller',
    debug=False,
    bootloader_ignore_signals=False,
    strip=False,
    upx=True,
    upx_exclude=[],
    runtime_tmpdir=None,
    console=False,
    disable_windowed_traceback=False,
    target_arch=None,
    codesign_identity=None,
    entitlements_file=None,
)
